@extends('admin::layouts.master')

@section('title', __('MultiSeller::common.text_approved'))

@section('content')
  <div id="shipping-app" class="card h-min-600">
    <div class="card-header">{{ __('MultiSeller::common.text_approved') }}</div>
    <div class="card-body">

      <form class="needs-validation" novalidate action="{{ admin_route('withdraws.process', $id) }}"
      method="POST">
        @method('PUT')
        @csrf

        <x-admin::form.row title="{{ __('MultiSeller::common.bank_account') }}">
          <div class="bg-light p-3 wp-400">
            <div class="mb-1 fw-bold">{{ __('MultiSeller::common.withdraw_banks') }}:</div>
            <div class="mb-3">{{ $withdraw->bank ?? '' }}</div>
            <div class="mb-1 fw-bold">{{ __('MultiSeller::common.bank_account') }}:</div>
            <div>{{ $withdraw->bank_account }}({{ $withdraw->bank_name }})</div>
          </div>
        </x-admin::form.row>

        @php
          $paids = [
            ['paid' => true, 'label' => __('MultiSeller::common.already_paid')],
            ['paid' => false, 'label' => __('MultiSeller::common.text_reject')]]
        @endphp

        <x-admin-form-select name="paid" key="paid" :options="$paids" :title="__('common.status')" :value="old('paid', true)" />

        <x-admin-form-textarea name="comment"  :title="__('order.history_comment')" :value="old('comment', '')" />

        <x-admin::form.row>
          <button type="submit" class="btn btn-primary btn-lg mt-3">{{ __('common.save') }}</button>
        </x-admin::form.row>
      </form>

    </div>
  </div>
@endsection
